package com.BaiBai.ioc_01;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

    @Resource(name = "userServiceImp")
    private UserService userService;
    @Resource(name = "newUserServiceImp")
    private UserService newUserServiceImp;
    public void show(){
        System.out.println("UserController");
        userService.show();
    }
}
